<%@ page isELIgnored="false" contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>

<html>
<head>
    <title>list</title>
</head>
<body>

<h2>我是服务器：${pageContext.request.localPort}</h2>
<h2>当前sessionId：${pageContext.session.id}</h2>


<div align="right">
    <a href="/resume/add">新增</a>
</div>
<%--${resumes}--%>
<div>
    <table align="center" border="0" width="100%" cellpadding="0" cellspacing="0">
        <tr>
            <td>ID</td>
            <td>地址</td>
            <td>姓名</td>
            <td>电话</td>
            <td>操作</td>
        </tr>
        <c:forEach items="${resumes}" var="resume">
            <tr>
                <td>${resume.id}</td>
                <td>${resume.address}</td>
                <td>${resume.name}</td>
                <td>${resume.phone}</td>
                <td>
                    <a href="/resume/upd?id=${resume.id}">修改</a>
                    <a href="/resume/delete?id=${resume.id}">删除</a>
                </td>
            </tr>
        </c:forEach>
    </table>
</div>

<a href="/without">退出账号</a>

</body>
</html>
